/****************************************************************************
 **
 ** Copyright (C) 2011 Andrey Kartashov .
 ** All rights reserved.
 ** Contact: Andrey Kartashov (porter@porter.st)
 **
 ** This file is part of the EMS web interface module of the genome-tools.
 **
 ** GNU Lesser General Public License Usage
 ** This file may be used under the terms of the GNU Lesser General Public
 ** License version 2.1 as published by the Free Software Foundation and
 ** appearing in the file LICENSE.LGPL included in the packaging of this
 ** file. Please review the following information to ensure the GNU Lesser
 ** General Public License version 2.1 requirements will be met:
 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
 **
 ** Other Usage
 ** Alternatively, this file may be used in accordance with the terms and
 ** conditions contained in a signed written agreement between you and Andrey Kartashov.
 **
 ****************************************************************************/
Ext.define
('EMS.view.EMSViewport',
 {
     extend: 'Ext.container.Viewport',
     layout: {
         type: 'border'
     },
     items: [
         {
             xtype: 'toolbar',
             region: 'north',
             autoHeight: true,
             height: 30,
             itemId: 'title',
             style: 'border-bottom: 2px solid #4c72a4;',

             items: [
                 '->',
                 {
                     text: 'logout',
                     itemId: 'logout',
                     iconCls: 'logout'
                 }
             ]

         } ,
         {
             xtype: 'EMSMenu',
             region: 'north',
             border: false,
         },
         {
             region: 'south',
             itemId: 'logs',
             collapsible: true,
             collapsed: true,
             height: 100,
             minHeight: 60,
             overflowY: 'scroll',
             tplWriteMode: 'append',
             tpl: '<div class="{cls}">[{now:date("H:i:s")}] - {msg}</div>',
             bodyPadding: 5,
         } ,
         {
             itemId: 'windows',
             region: 'center',
             border: false,
             layout: 'fit'
         }
     ]//items Viewport
 });//ext create
